import { Component } from "cc";

export default class LifeCycle extends Component {
    protected onLoad() {
        this.onCreate();
    }
    protected onCreate() {}

    protected start() {
        this.onStart();
    }
    protected onStart() {}

    protected onEnable() {
        this.onAwake();
    }
    protected onAwake() {}

    protected onDisable() {
        this.onAsleep();
    }
    protected onAsleep() {}

    protected onDestroy() {
        this.onCleanup();
    }
    protected onCleanup() {}
}